﻿<?PHP 
//美妆
$vecTagsAll=array(
"彩妆",array('隔离',0,'BB霜',0,'眼妆',0,'遮瑕',0,'腮红',0,'眼影',0,'唇妆',0,'指甲油',0,'粉底',0,'眉笔',0),
"保养",array('卸妆',0,'防晒',0,'面膜',0,'面霜',0,'护手霜',0,'乳液',0,'保湿',0,'眼霜',0,'洁面',0,'爽肤水',0,'沐浴乳',0)
);
$k=0;

if (!isset($cl_catelog)) $cl_catelog = "";
if (!isset($cl_tag)) $cl_tag = "";
if (!isset($cl_param)) $cl_param = "";
?>
    <!-----二级 三级  开始------->
	<div class="goodsTop catalogTop">
        <div class="gsT_r rgary">
        <?PHP 
			for($k = 0; $k < count($vecTagsAll); $k+=2)
			{
		?>
            <div class="gs_key">
                <h2 class="f14"><?PHP echo $vecTagsAll[$k]; ?>：</h2>
                <ul>
                	<?PHP 
					$vecTags=$vecTagsAll[$k+1];
					for ($i=0; $i < count($vecTags); $i+=2)
					{
						$tmp = $vecTags[$i+1]==1 ? "class='hl'" : "";
						$str="<li $tmp><a title='".$vecTags[$i]."' href='../tag/?cl=".urlencode($cl_catelog)."&tag=".urlencode($vecTags[$i]).$cl_param."'>";
						if ($cl_tag==$vecTags[$i])
							$str.="<font color='#FF6600'>$vecTags[$i]</font>";
						else
							$str.=$vecTags[$i];
						$str.="</a></li>";
						echo $str;
					}
					?>
                </ul>
            </div>
            <?PHP } ?>
            
    	</div>           
	</div>
         <!----- 二级 三级 结束------->